<div class="filterbox">
    <?php if($category_id){ ?>
    <div class="filterbox-title">
        <div class="cat_se_l">
            <div id="box_choice_category_top" class="cat_se_r">
                <h1>
                    <span style="font-size:12px; color:#000">Chuyên mục: </span>
                    <span class="category_label"><?php echo get_category_label($category_id); ?></span>
                </h1>
            </div>
        </div>
        <?php echo show_category($this->province_id); ?>
     </div>
    <?php } ?>


    <div class="filterbox-content">
    	<?php
			if($showCategory){
				if(count($category)){
		?>
            <div id="RequestBar">
                <div class="Navication3">
					<?php	foreach($this->all_cats as $key=>$item){ 	?>
                        <div class="filterbox-item <?php echo $item['css']; ?>">
                            <a href="<?php echo get_post_list_url($this->province_id,$district_id,$item['id'],$need_id,$type_id) ?>">
                                <strong><?php echo $item[' name']; ?></strong>
                            </a>
                        </div>
                    <?php } ?>
            	</div>
        	</div>
		<?php }   }?>

         <?php if($showDistrict){ if(count($district)){  ?>
            <div class="filter-need " id="RequestBar">
                <div id="BarConditions">

                    <?php	foreach($district as $key=>$item){

                    ?>
                    <div class="item-condition">
                        <a href="<?php echo   get_post_list_url($this->province_id,$item['id'],$category_id,$need_id,$type_id) ?>"><?php echo $item['name']; ?></a>
                    </div>
                    <?php 	} ?>
                </div>
            </div>
		<?php }} ?>

        <?php if(!$showCategory){ echo '<div id="RequestBar">'; }?>
        <?php if($showNeed){ if(count($need)){ ?>
            <div class="filter-need Navication1">
            	<a  rel="nofollow" href="<?php echo get_post_list_url($this->province_id,0,$category_id,0,0) ?>">
            	    <?php if(empty($need_id) && $need_id>0){ ?>
                    111
            	        <div style="margin-left:5px" id="nc_detail" class="nc_item_over" onmouseover="this.className='nc_item_over'" onmouseout="this.className='nc_item no_bg'">
                            <div class="center">Tất cả</div>
                        </div>
            	<?php } else { ?>
                    <div style="margin-left:5px" id="nc_detail" class="nc_item no_bg" onmouseover="this.className='nc_item_over'" onmouseout="this.className='nc_item no_bg'">
                        <div class="center">Tất cả</div>
                    </div>
          		<?php } ?>
               </a>
               <?php foreach($need as $key=>$item){  ?>

               <a rel="nofollow" href="<?php  echo get_post_list_url($this->province_id,$district_id,$category_id,$item['id'],$type_id) ?>">
               	<?php
					if($item['id']==$need_id){
				?>
                	<div style="margin-left:5px" id="nc_detail" class="nc_item_over" onmouseover="this.className='nc_item_over'" onmouseout="this.className='nc_item no_bg'">
                    <div class="center"><?php echo $item['name']; ?></div></div>
				<?php	}else {
						?>
                        <div style="margin-left:5px" id="nc_detail" class="nc_item no_bg" onmouseover="this.className='nc_item_over'" onmouseout="this.className='nc_item no_bg'">
                        <div class="center"><?php echo $item['name']; ?></div></div>
				<?php	}
                   ?>

               </a>

               <?php } ?>
            </div>

        <?php } }  ?>


        <?php

			if($showType){
				if(count($type)){

			?>
             <div class="Navication2">
				<?php	foreach($type as $key=>$item){
					if($item['id']==$type_id){
						$addClass="selected";
					}else {
						$addClass="";
					}
				?>
        			 <div class="filterbox-item <?php echo getClass($item['name']).' '.$addClass;  ?>">
                     	<h2><a href="<?php echo get_post_list_url($this->province_id,$district_id, $category_id, $need_id, $item['id']); ?>"><?php echo $item['name']; ?></a></h2>
                     </div>
				<?php } ?>
        	</div>
		<?php		}
			}

		?>
        <?php if(!$showCategory){ echo '</div>'; }?>
    </div>

</div>
